package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.CommentAndUser;
import cn.wolfcode.trip.base.mapper.CommentAndUserMapper;
import cn.wolfcode.trip.base.service.ICommentAndUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentAndUserServiceimpl implements ICommentAndUserService {
    @Autowired
    private CommentAndUserMapper commentAndUserMapper;
    @Override
    public Integer selectUnRead(Long id) {
        return commentAndUserMapper.selectUnRead(id);
    }

    @Override
    public void changeState(Long travelId) {
        commentAndUserMapper.changeState(travelId);
    }


}
